<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        let [a,b,x]=[1,2,3]
        console.log(x)//3
        let {c,d,y}={c:4,d:5,y:6}
        console.log(y)//6
        let [json,arr,num,str]=[{a:12,b:5},[12,5,8],8,'16']
        console.log(json,arr,num,str)
        let [a,b]
        [a,b]=[15,6]//报错
    </script>
</body>
</html>